package com.dongdongshop.common;

public enum ResultEnum {
    SUCCESS(10000,"操作成功"),
    ERROR(9999,"操作失败"),
    NO_LOGIN(10001,"未登录"),
    UNKNOWNACCOUNTEXCEPTION(10002,"账号异常,或不存在!"),
    INCORRECTCREDENTIALSEXCEPTION(10003,"密码异常!"),
    LOGINEXCEPTION(10004,"账号审核未通过!"),
    ACCOUNT_ALREADY_EXISTS(10005,"账号已存在!"),
    ACCOUNT_ISNULL(10006,"账号为空!"),
    ACCOUNT_REGISTER_NO(10007,"账号注册失败!"),
    ACCOUNT_REGISTER_YES(10008,"账号注册成功!"),
    BUSINESS_UPDATE_YES(10009,"商家信息修改成功!"),
    BUSINESS_UPDATE_NO(10010,"商家信息修改失败!"),
    EXAMINE_YES(10011,"账号审核成功!"),
    EXAMINE_NO(10012,"账号审核失败!"),
    SMS_NO(10013,"验证码错误!"),
    GOODS_SOLD_OUT(10014,"商品已售完!");

    private Integer status;

    private String statusInfo;

    ResultEnum(Integer status, String statusInfo) {
        this.status = status;
        this.statusInfo = statusInfo;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStatusInfo() {
        return statusInfo;
    }

    public void setStatusInfo(String statusInfo) {
        this.statusInfo = statusInfo;
    }
}
